#pragma once
#include "../include/include/ft2build.h"
#pragma comment(lib, "freetype253_D.lib")
#include "Shaders.h"
#include FT_FREETYPE_H

class TextRenderer
{
private:
	TextRenderer();
	static TextRenderer* instance;
	bool canDo = false;
	FT_Face face;
	FT_Library ftLib;
	Shaders* textShader;

	GLuint tex;
	GLuint vbo;
public:
	static TextRenderer* GetInstance();
	bool IsAvailable()
	{
		return canDo;
	}
	~TextRenderer();


	void RenderText(ESContext* esContext, const char *text, float x, float y, float sx, float sy);
};

